package com.ruoyi.mall.mapper;

import java.util.List;

import com.ruoyi.mall.domain.MallOrderDetail;

/**
 * 订单详情Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-11
 */
public interface MallOrderDetailMapper {
    /**
     * 查询订单详情
     *
     * @param orderDetailId 订单详情主键
     * @return 订单详情
     */
    MallOrderDetail selectMallOrderDetailByOrderDetailId(Long orderDetailId);

    /**
     * 查询订单详情列表
     *
     * @param mallOrderDetail 订单详情
     * @return 订单详情集合
     */
    List<MallOrderDetail> selectMallOrderDetailList(MallOrderDetail mallOrderDetail);

    /**
     * 新增订单详情
     *
     * @param mallOrderDetail 订单详情
     * @return 结果
     */
    int insertMallOrderDetail(MallOrderDetail mallOrderDetail);

    /**
     * 修改订单详情
     *
     * @param mallOrderDetail 订单详情
     * @return 结果
     */
    int updateMallOrderDetail(MallOrderDetail mallOrderDetail);

    /**
     * 删除订单详情
     *
     * @param orderDetailId 订单详情主键
     * @return 结果
     */
    int deleteMallOrderDetailByOrderDetailId(Long orderDetailId);

    /**
     * 批量删除订单详情
     *
     * @param orderDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteMallOrderDetailByOrderDetailIds(Long[] orderDetailIds);
}
